//
//  HomeCollectionViewCell.m
//  喜马拉雅首页
//
//  Created by dllo on 15/12/21.
//  Copyright © 2015年 刘倩男. All rights reserved.
//

#import "HomeCollectionViewCell.h"

@interface HomeCollectionViewCell ()
@property (nonatomic, retain) UIImageView *myImageView;
@property (nonatomic, retain) UILabel *titleLabel;
@property (nonatomic, retain) UILabel *albumLabel;
@end
@implementation HomeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews{
    
    UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 115, 6)];
    imageView1.image = [UIImage imageNamed:@"find_albumtop@2x.png"];
    [self addSubview:imageView1];
    
    self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 5, 115, 115)];
    self.myImageView.backgroundColor = [UIColor purpleColor];
    [self addSubview:self.myImageView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.myImageView.frame.size.height - 25, self.myImageView.frame.size.width, 30)];
    self.titleLabel.text = @"暂无";
    self.titleLabel.textColor = [UIColor whiteColor];
    self.titleLabel.alpha = 5;
    self.titleLabel.backgroundColor = [UIColor blackColor];
    self.titleLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:self.titleLabel];
    
    self.albumLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 130, self.myImageView.frame.size.width, 30)];
    self.albumLabel.text = @"暂无";
    [self addSubview:self.albumLabel];
    
}

@end
